;; **************************************************************************
;; * Symbolics Lisp Machine Keyboard to PS/2 Converter w/ Programmable Keys *
;; *                Copyright (c)2008 Stanislav Datskovskiy                 *
;; *                          stas@loper-os.org                             *
;; *                                                                        *
;; *                    See README for electric schematics                  *
;; *                                                                        *
;; *  This program is free software; you can redistribute it and/or modify  *
;; *  it under the terms of the GNU General Public License as published by  *
;; *  the Free Software Foundation; either version 3 of the License, or     *
;; *  (at your option) any later version.                                   *
;; *                                                                        *
;; *  This program is distributed in the hope that it will be useful,       *
;; *  but WITHOUT ANY WARRANTY; without even the implied warranty of        *
;; *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
;; *  GNU General Public License for more details.                          *
;; *                                                                        *
;; *  You should have received a copy of the GNU General Public License     *
;; *  along with this program.  If not, see <http://www.gnu.org/licenses/>. *
;; **************************************************************************

;; ******************************************************************
;; Pin Definitions

;; Port Tristates
#define		trisPortA	B'11110000'
#define		trisPortB	B'10000000'

;; PC PS/2 Keyboard connection
#define		PC_CLOCK	PORTB, 0
#define		PC_DATA		PORTB, 1

;; Symbolics 3600 Keyboard connection
#define		SYM_CLEAR	PORTB, 5
#define		SYM_CLOCK	PORTB, 6
#define		SYM_DATA	PORTB, 7

;; LED indicators
#define		LED_POWER	PORTA, 0
#define		LED_CAPS	PORTA, 1
#define		LED_NUM		PORTA, 2
#define		LED_SCROLL	PORTA, 3

;; Config Switch
#define		SW_MODE		PORTA, 4

;; Control Lights
#define		LED_ON		bsf
#define		LED_OFF		bcf

;; ******************************************************************
